import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: () => import('../views/Layout.vue'),

    },
    {
      path: '/index',
      name: 'index',
      component: () => import('../views/index.vue'),
      children: [{
        path: "/tiezi",
        name: 'tiezi',
        component: () => import('../views/tiezi.vue'),

      },
      {
        path: "/plgl",
        name: 'plgl',
        component: () => import('../views/plgl.vue'),

      },
      {
        path: "/yhgl",
        name: 'yhgl',
        component: () => import('../views/yhgl.vue'),

      },
      {
        path: "/bkgl",
        name: 'bkgl',
        component: () => import('../views/bkgl.vue'),

      },
      
      
      
    ]
    },
  ],
})

export default router
